<?php
class Ext_View_Helper_GetApplicationId extends Zend_View_Helper_Abstract
{
    public function GetApplicationId( $module )
    {
   		$model = new Ext_Model_ApplicationModule();
   		$row = $model->fetchRow( $model->select()->where('namespace = ?', $module));
   		if( count( $row )){
   			return $row->application_id;
    	}
    	return null;
    }
}